<?php
session_start();
if(!isset($_SESSION['sid']) || !isset($_SESSION['sname'])) {
	session_write_close();
	header('Location: login.php');
	die('You are not logged in.');
}
session_write_close();
?>
